package com.bjtu.literatureclient.api.vo.response;


import com.bjtu.literatureclient.domain.journal.JournalEnglish;

/**
 * @author caiyuli
 * @date 2020/4/29 3:15 下午
 */
public class JournalEnResponse {

    private String indexNo;
    private String journalName;
    private String iSSN;
    private String journalNameAbbr;
    private int institutionID;
    private int foundYear;
    private String releaseCycles;
    private String journalEmail;
    private String note;


    public static JournalEnResponse of(JournalEnglish journalEnglish){
        JournalEnResponse response = new JournalEnResponse();

        response.setIndexNo(journalEnglish.getIndexNo());
        response.setJournalName(journalEnglish.getJournalName());
        response.setiSSN(journalEnglish.getiSSN());
        response.setJournalNameAbbr(journalEnglish.getJournalNameAbbr());
        response.setInstitutionID(journalEnglish.getInstitutionID());
        response.setFoundYear(journalEnglish.getFoundYear());
        response.setReleaseCycles(journalEnglish.getReleaseCycles());
        response.setJournalEmail(journalEnglish.getJournalEmail());
        response.setNote(journalEnglish.getNote());

        return response;
    }


    public String getIndexNo() {
        return indexNo;
    }

    public void setIndexNo(String indexNo) {
        this.indexNo = indexNo;
    }

    public String getJournalName() {
        return journalName;
    }

    public void setJournalName(String journalName) {
        this.journalName = journalName;
    }

    public String getiSSN() {
        return iSSN;
    }

    public void setiSSN(String iSSN) {
        this.iSSN = iSSN;
    }

    public String getJournalNameAbbr() {
        return journalNameAbbr;
    }

    public void setJournalNameAbbr(String journalNameAbbr) {
        this.journalNameAbbr = journalNameAbbr;
    }

    public int getInstitutionID() {
        return institutionID;
    }

    public void setInstitutionID(int institutionID) {
        this.institutionID = institutionID;
    }

    public int getFoundYear() {
        return foundYear;
    }

    public void setFoundYear(int foundYear) {
        this.foundYear = foundYear;
    }

    public String getReleaseCycles() {
        return releaseCycles;
    }

    public void setReleaseCycles(String releaseCycles) {
        this.releaseCycles = releaseCycles;
    }

    public String getJournalEmail() {
        return journalEmail;
    }

    public void setJournalEmail(String journalEmail) {
        this.journalEmail = journalEmail;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
